package com.github.phoenics.bazooka.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.phoenics.bazooka.dao.TeacherDao;
import com.github.phoenics.bazooka.domain.po.Student;
import com.github.phoenics.bazooka.domain.po.Teacher;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Phoenics Chow
 * on 2019年01月27日
 */
@Service
public class TeacherService extends ServiceImpl<TeacherDao, Teacher> {
    private static org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(TeacherService.class);
    public List<Student> getStudentList(Long id){
        return this.baseMapper.getStudentList(id);
    }
    public  List<Teacher> selectAllTeacher(){
        return this.baseMapper.selectAllTeacher();
    }
}
